Update Ros2ForUnity asset and add service hanling #343
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The PR introduces an update to the Ros2ForUnity version. With the latest version of R2FU, a ROS2 service implementation is available and the functionality is also provided to AWSIM.
Details
The PR introduces new Ros2ForUnity asset both on Windows and Ubuntu. It required extending the
SimulatorRos2Node
script with new functions:CreateService
RemoveService
CreateClient
RemoveClient
The versions which were used for asset generation can be found below:
For given AWSIM version, the following messages were generated using R2FU:
tier4_control_msgs
andtier4_vehicle_msgs
were generated for AWSIM, since only they are used in simulationEvidence
The following videos show AWSIM reacting to ROS2 services. The video below shows registering a service in Unity and calling it from PS terminal on Windows.
AWSIM-WINDOWS-R2FU-SERVICES.mp4
The video below shows registering a service in Unity and calling it from the terminal in Ubuntu
AWSIM-UBUNTU-R2FU-SERVICES.webm
The video below presents how Ros2 service and client can interact inside Unity (Ubuntu platform)
UnityTestServiceAndClientCall.webm